﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Ink="clr-namespace:System.Windows.Ink;assembly=PresentationCore"
        xmlns:handWritting="clr-namespace:AmazingWPFControls.HandWritingToText">
    <!-- =============================================================================== -->
    <!-- HandWritingToText                                                               -->
    <!-- =============================================================================== -->
    <Style x:Key="{x:Type handWritting:HandWritingToText}" TargetType="{x:Type handWritting:HandWritingToText}">
        <Setter Property="Background" Value="Transparent" />
        <Setter Property="Foreground" Value="Black" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type handWritting:HandWritingToText}">
                    <InkCanvas x:Name="PART_theInkCanvas" Background="{TemplateBinding Background}">
                        <InkCanvas.DefaultDrawingAttributes>
                            <Ink:DrawingAttributes Color="Black" Width="5" Height="5" />
                        </InkCanvas.DefaultDrawingAttributes>
                    </InkCanvas>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>